package com.intelligent.ispc.foundation.event;

import com.google.common.eventbus.Subscribe;

/**
 * Created by Peter on 2016/4/22.
 */
public class FileChangeListener implements Listener {

    private String fileName;
    private String filePath;
    private String name;

    public FileChangeListener(String name) {
        this.name = name;
    }
    @Subscribe
    public void listen(FileChangeEvent event) {
        filePath = event.getFilePath();
        fileName = event.getFileName();
    }

    public String getFilePath(){
        return filePath;
    }

    public String getFileName(){
        return fileName;
    }

    @Override
    public String getName() {
        return name;
    }
}
